<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Relation extends Model {
	public $timestamps = false;

	protected $fillable = [
		'type_id', 'order_id', 'contacts', 'phone', 'order_time', 'price', 'products', 'receipt_name', 'receipt_address',
	];
	//渠道与规则对应关系map
	public function type() {
		return $this->belongsTo(Type::class);
	}
}
